//package business;
//
//import java.io.File;
//import java.util.List;
//
//import org.jdom.Document;
//import org.jdom.Element;
//import org.jdom.input.SAXBuilder;
//
//public class Struts_config  {
//	
//	public void a() throws Exception{
//		SAXBuilder builder = new SAXBuilder();
//		Document document = builder.build(new File("bin/struts-config.xml"));
//		Element root = document.getRootElement();
//		Element formbeans=root.getChild("formbeans");
//		List<Element> beans=formbeans.getChildren();
//		for (Element bean:beans){
//			String name=bean.getAttributeValue("name");
//			String class1=bean.getAttributeValue("class");
//		}
//		
//		Element action_mapping=root.getChild("action-mapping");
//		List<Element> actions=action_mapping.getChildren();
//		for (Element action:actions){
//			String name=action.getAttributeValue("name");
//			String path=action.getAttributeValue("path");
//			String type=action.getAttributeValue("type");
//			
//			List<Element> forwards=action.getChildren();
//			for (Element forward:forwards){
//				String forwardName=forward.getAttributeValue("name");
//				String forwardValue=action.getAttributeValue("value");
//			}
//		}
//	}
//	
//	
//}
